package bjfu.it.sun.chat;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class VoiceInputActivity extends AppCompatActivity {
    Button returnvibt;
    Button finishvibt;
    Button beginspeakingbt;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_voice_input);

        //        "返回”按钮点击事件
        returnvibt=findViewById(R.id.return_vi);
        returnvibt.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent();
                intent.setClass(VoiceInputActivity.this,MainActivity.class);
                startActivity(intent);
            }
        });
//        “完成”按钮点击事件
        finishvibt=findViewById(R.id.finish_vi);
        finishvibt.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent();
                intent.setClass(VoiceInputActivity.this,VoiceInput2Activity.class);
                startActivity(intent);
            }
        });
    }
}